﻿angular.module('app')
  .directive('imgError', ['$location', '$anchorScroll', function ($location, $anchorScroll) {
      return {
          restrict: 'A',
          link: function ($scope, el, attr, controller) {
              el[0].onerror = function () { el[0].src = attr.imgError; }
          }
      };
  }]);
